package job_6;

import java.util.Scanner;

public class grade {
	public static void main(String[] args) {
		Scanner Scanner1=new Scanner(System.in);
		System.out.println("请输入成绩！");
		int grade=Scanner1.nextInt();
		if(grade>100 || grade<0) {
			System.out.println("无效成绩~");
		}else if(grade>90) {
			System.out.println("A");
		}else if(grade<90 && grade>80) {
			System.out.println("B");
		}else if(grade<80 && grade>60) {
			System.out.println("C");
		}else if(grade<60) {
		System.out.println("D");
}
	}
}
